﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using QLChoDiaOc.Process;

namespace QLChoDiaOc.Forms
{
    /// <summary>
    /// Interaction logic for FormThongTinNguoiDung.xaml
    /// </summary>
    public partial class FormThongTinNguoiDung : Page
    {
        SelectInfo _selectInfo = new SelectInfo();

        public FormThongTinNguoiDung()
        {
            InitializeComponent();
            ShowThongTin();
        }

        void ShowThongTin()
        {
            string MaLoaiNhanVien = _selectInfo.SelectMaLoaiNV(App.TenDangNhap);
            maNhanVientextbox.Text = App.TenDangNhap;
            hoTenTextBox.Text = _selectInfo.SelectHoTenNhanVien(App.TenDangNhap);
            loaiNhanVienTextBox.Text = _selectInfo.SelectTenLoaiNhanVien(MaLoaiNhanVien);
        }
    }
}
